/*
 * @Description: 每次新开窗口都更新A8 JSESSIONId
 * @Date: 2019-10-14 11:08:46
 * @LastEditTime: 2020-04-01 21:07:17
 * @LastEditors: 黄勇
 */

import {
    createNamespacedHelpers
} from "vuex";
const {
    mapState,
    mapMutations,
    mapActions
} = createNamespacedHelpers("user");

export default {
    components: {},
    data() {
        return {}
    },
    computed: {

    },
    methods: {
        ...mapMutations([
            "SET_SSOV5URL",
            "SET_SSOV5URLOBJ",
            "SET_FIRSTlOGINV5"
        ]),
        async getDdV5SsoToken() {
            //同步获取url
            let res = await this.api.getDdV5SsoToken({}, {method: "get"});
            let url = res.data;
            //return url;
            this.SET_SSOV5URL(url);
            //this.SET_FIRSTlOGINV5(true);
        },
        async getDdV5SsoTokenObj(){
            // let res = await this.api.getDdV5SsoToken({}, {method: "get"});
            // let obj = res.data;
            // this.SET_SSOV5URLOBJ(obj);
        }
    }

}